package Exercises;

import java.util.Scanner;

public class Task20 {

	public static void main(String[] args) {

		Scanner sc = new Scanner (System.in);

		String s = "<";
		String b = ">";

		
		int number = (int)((Math.random())*100);

		while(true){
			System.out.println("Please enter a number: ");
			
		int n = sc.nextInt();
		if (number > n)
		{
			System.out.println(s + "  your number is smaller then \"The number\" ");
		}
		if (number < n)
		{
			System.out.println(b + "  your number is bigger then \"The number\" ");
		}
	
		if (number == n)
		{
			System.out.println("You did it!");
			break;
		}
	}
	}
}
